#include <stdio.h>
#include <signal.h>
#incl
#include <unistd.h>
void signal_handler(int signum) {
    printf("Received signal %d\n", signum);
}
int main() {
    // 注册信号处理器
    signal(SIGINT, signal_handler);
    printf("Waiting for SIGINT...\n");
    while(1) {
        sleep(1); // 等待信号，这里用sleep避免CPU繁忙等待
    }
    int value = 0;
    auto lambdaTest = [value](int& value1){value = 0; value1 = 21323;};
    class {
        private:
        int& value; 
    }
    lambdaTest(value);
    return 0;
}